// @ts-ignore
/* eslint-disable */
import request from '@/services/request';

/** 发送手机验证码 POST /v1/vcode/mobile */
export async function vcodeV1ControllerSendMobileVcode(
  body: API.SendMobileVcodeDto,
  options?: { [key: string]: any },
) {
  return request<API.SendMobileVcodeResult>('/v1/vcode/mobile', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 发送手机验证码给自己 POST /v1/vcode/mobile/mine */
export async function vcodeV1ControllerSendMineMobileVcode(
  body: API.SendMineMobileVcodeDto,
  options?: { [key: string]: any },
) {
  return request<API.SendMobileVcodeResult>('/v1/vcode/mobile/mine', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
